<?
// sape
    global $sape;
    if (!defined('_SAPE_USER')){
        define('_SAPE_USER', '1235ae05a11b316ad86a47704119eda4'); 
    }
    require_once($_SERVER['DOCUMENT_ROOT'].'/'._SAPE_USER.'/sape.php'); 
    $sape = new SAPE_client();
    ob_start(array(&$sape_context,'replace_in_page'));
//
setlocale(LC_ALL, 'ru_RU.CP1251');
session_start();
require_once($_SERVER['DOCUMENT_ROOT']."/cms/classes/export.php");


$smarty = new Smarty;

function microtime_float()
{
	list($usec, $sec) = explode(" ", microtime());
	return ((float)$usec + (float)$sec);
}


$time = microtime_float();
$core =& CmsCore::Instance();
$core->CheckPage();
$core->GeneratePage();
$core->ShowPage();

$time = microtime_float() - $time;

////////////////////////////////////////////////////////


?>
